/*
 * All content copyright http://www.j2eefast.com, unless
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsInspectionAccountEntity;
import com.j2eefast.produce.pms.entity.PmsParticipantEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>送检账户</p>
 *
 * @author: summer
 * @date: 2021-05-29 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsInspectionAccountMapper extends BaseMapper<PmsInspectionAccountEntity> {



	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsInspectionAccountEntity> findPage(IPage<?> params,
                                         @Param("inspectionAccount") String inspectionAccount,
                                         @Param("inspectionUnit") String inspectionUnit,
										  @Param("projectName") String projectName,
										  @Param("projectType") String projectType,
										  @Param("quota") String quota,
										  @Param("discount") String discount,
										  @Param("region") String region,
										  @Param("beginTime") String beginTime,
										  @Param("endTime") String endTime,
										  @Param("inspectionAccount2") String inspectionAccount2,
										  @Param("inspectionUnit2") String inspectionUnit2,

                                        @Param("sql_filter") String sql_filter);

    public boolean deleteByIds(@Param("ids") Long[] ids);

    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);

    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);


    List<PmsInspectionAccountEntity> findList(IPage<?> params,
//                                              @Param("testingIndustry") String testingIndustry,
                                              @Param("inspectionUnit") String inspectionUnit,
                                              @Param("projectName") String projectName,
                                              @Param("sql_filter") String sql_filter);



}
